# -*- coding: utf-8 -*-
from requests import Requests,Session
url='http://httpbin.org/post'
data={
      'name':'Bill',
      'age':30
      }

headers={
        'country':'China'
        }


session=Session()

#封装请求数据
req=Requests('post',url,data=data,headers=headers)

#返回requests。models。Reponse
prepared=session.prepare_request(req)
#发生请求
r.session.send(prepared)
print(type(r))
print(r.text)
